package homewo1;

public class Thread1 extends Thread
{
	public Thread1(String name)
	{
		super(name);
	}
	
	public void run()
	{
		System.out.println(Thread.currentThread().getName());
	}
	public static void main(String[] args) {

	       Thread1 a=new Thread1("A");
	       Thread1 b=new Thread1("B");
	       a.start();
	       b.start();
		}
}
